package com.weiaibenpao.demo.chislim.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

public class ControlService extends Service {
    private final IBinder binder = new MyService();
    public ControlService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        return binder;
    }

    public class MyService extends Binder {
        public ControlService getService(){
            return ControlService.this;
        }
    }

}
